package cn.edu.sdjzu.ex04openfeign8005.controller;

import cn.edu.sdjzu.ex04openfeign8005.service.UniversityService;
import edu.sdjzu.common.entity.University;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@RestController
public class UniversityController {
    @Autowired
    private UniversityService universityService;
    @GetMapping("/university")
    public List<University> selectList() {

        return universityService.selectList();
    }
}
